package com.fengchao.api.dao.trc;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Administrator on 2016/7/7.
 */
@Mapper
public interface TrcServerErrorLogMapper {
    /**
     * 存储异常日志
     *
     * @param addressUrl 接口地址
     * @param ip         请求ip
     * @param type       异常类型 用于区分多种异常
     * @param info       异常信息
     * @return
     */
    @Insert("insert into trc_server_error_log(id,address,parameter,ip,type,info,is_solve,date) values(#{id},#{address},#{parameter},#{ip},#{type},#{info},0,NOW())")
    Integer insertErrorLog(@Param("id") Integer id, @Param("address") String addressUrl, @Param("parameter") String parameter, @Param("ip") String ip, @Param("type") String type, @Param("info") String info);
}
